<?php
class cachekey {
	public static $key = array(
		
		'BASE_KEY_CONF' => array(
				'IDE_NUM' => "idenum", //唯一身份标识
				'FAILURE_LOGIN_TIMES' => "failure:login_times:",     //手机号对应的错误登录次数
				'SEND_CODE_COUNT' => "send_code:count:",  //手机号发送的短信次数
				'VERIFY_SMS_CODE' => "vercode:",      //手机号对应的短信验证码
				'VERIFY_MAIL_CODE' => "mailvercode:",      //邮箱对应的验证码
				'VERIFY_IMG_CODE' => "mailvercode:",      //邮箱对应的验证码
				'CUST_INFO' => "cust_info:",    //custid对应的用户信息
				'CUST_TOKEN' => "cust_token:",  //token对应的custid
				'CUST_MOBILE' => "cust_mobile:",  //mobile对应的custid
				'CUST_REGISTER_INVIT' => "cust_register_invit:",  //邀请注册
				
				'CUST_FRIENDS' => "cust_friends:", //custid对应的好友列表
				'APPLY_FRIEND_TIME' => "apply_friend:", //申请加好友
				'APPLY_CHAT_TIME' => "apply_chat:", //申请加入群
				'APPLY_ACTIVITY_TIME' => "apply_activity:", //申请加入活动
				
				'FRIENDS_TAGS' => "friends_tags:",//custid对应的好友标签列表
				'FRIENDS_TAG' => "friends_tag:",//tagid对应的好友标签
				'FRIENDS_TAG_CUST' => "friends_tag_cust:",//tagid对应的好友标签下的成员
				
				'CHAT_LIST' => "chat_list:", //custid对应的聊天群列表
				'CHAT_CUST' => "chat_cust:", //chatid对应的聊天群成员列表
				
				'NO_PUSH_CHAT' => "no_push_chat:",//chatid对应的群消息无推送
				'NO_PUSH_CUST' => "no_push_cust:",//custid对应的好友消息无推送
				
				'NO_SOUND_CUSTS' => "no_sound_custs",//设置了无声推送的cust
				'NO_PUSH_CUSTS' => "no_push_custs",//设置了无推送的cust
				
				'DYNAMIC_REPLY' => "dynamic_reply:",//dynamicid对应的动态回复
				'CUST_RELATION_DYNAMIC_REPLY' => "cust_relation_dynamic_reply:",//custid对应的相关动态回复
				'CUST_DYNAMIC_PRAISE' => "cust_dynamic_praise:",//custid对应的相关动态赞
				
				'ACTIVITY_REPLY' => "activity_reply:",//activityid对应的活动回复
				'CUST_RELATION_ACTIVITY_REPLY' => "cust_relation_activity_reply:",//custid对应的相关活动回复
				'CUST_ACTIVITY_PRAISE' => "cust_activity_praise:",//custid对应的相关活动赞
				
				'DRIFT_BOTTLE_ID' => "drift_bottle_id",//漂流瓶id
				'DRIFT_BOTTLE' => "drift_bottle:",//漂流瓶
				'DRIFT_BOTTLES' => "drift_bottles",//漂流瓶池
				'CUST_DRIFT_BOTTLES' => "cust_drift_bottles:",//custid对应的漂流瓶池
				
				'CUST_INTEREST_TAG' => "cust_interest_tag:",//custid对应的私有兴趣		
						
				'RED_PACKETS' => "red_packets:",//packetsid对应的红包
				'RED_PACKETS_OPENED' => "red_packets_opened:",//packetsid对应的被拆红包
				
				'ENT_CHILD_DEPART' => "ent_child_depart:",//组织某个pid对应的子部门列表
				'ENT_CUSTS' => "ent_custs:",//企业组织entid对应的里面的成员集合
				'DEPART_CUSTS' => "depart_custs:",//部门departid对应的里面的成员集合
				
				'AUTO_REPLY_KEYWORD' => "auto_reply_keyword:",//组织某个公众号关键字对应的自动回复内容
				
				'BUY_ORDER_ID' => "buy_order_id:",//根据日期生成的采购订单id
				'SELL_ORDER_ID' => "sell_order_id:",//根据日期生成的销售订单id
				'INVENTORY_ID' => "inventory_order_id:",//根据日期生成的盘点单id
				
				'APPROVAL_ID' => "approval_id:",//根据日期生成的审批或报销单id
				
				'CUST_REIMBURSE_IDS' => "cust_reimburse_ids:",//审核人对应的待审核报销单号id集合
				'CUST_REIMBURSE_APPROVED_IDS' => "cust_reimburse_approved_ids:",//审核人对应的已审核报销单号id集合
				
				'CUST_APPROVALS_IDS' => "cust_approvals_ids:",//审核人对应的待审核审批单号id集合
				'CUST_APPROVALS_APPROVED_IDS' => "cust_approvals_approved_ids:",//审核人对应的已审核审批单号id集合
				
				'CUST_APPROVAL_IDS' => "cust_approval_ids:",//审核人对应的待审核审批单号id集合
				'CUST_APPROVAL_APPROVED_IDS' => "cust_approval_approved_ids:",//审核人对应的已审核审批单号id集合
				
				'CUST_TASK_IDS' => "cust_task_ids:",//执行人对应的任务单号id集合
				
		),
		
		
		'TALK_KEY_CONF' => array(
				'CUST_DEVICE' => "chat:cust_id:device_no",   //custid对应的设备号
				'DEVICE_CUST' => "chat:device_no:cust_id",   //设备号对应的custid
				'PUSH_NOTICE_COUNT' => "chat:push_notice:count",  //custid对应的未读消息数
				'PUSH_LIST' => "msg:unread:push_list", //离线推送列表
				
				'TALK_AUTH' => "chat:auth:cust:",  //custid对应的talk auth
				'TALK_WEBAUTH' => "webchat:auth:cust:",  //custid对应的talk webauth
				
				'CHAT_AUTH_CUST' => "chat:auth:cust:",  //聊天服务器redis中custid对应的token
				'MSG_UNREAD' => "msg:unread:", //聊天服务器redis中custid对应的未读消息列表
				
				'MSG_ALL' => "msg:all", //所有的消息
		),
	);

}


